#ifndef __BSP_INCLUDE_H_
#define __BSP_INCLUDE_H_

#include "main.h"
#include "freertos.h"

typedef 	uint8_t			U8;
typedef 	int8_t			S8;
typedef 	uint16_t 		U16;
typedef		int16_t			S16;
typedef		uint32_t		U32;
typedef		int32_t			S32;
typedef		void				VOID;


typedef uint8_t (*DriverHandler_t)(void); 
typedef uint8_t (*PushDownHandler_t)(void);

typedef enum{
	KEY_SHORTCHECK_REGISTER=0,
	KEY_LONGCHECK_REGISTER,
}Register_FunctionId_t;

typedef struct Driver_KeyCheck{
	U8 trigLabel;
	U8 pressFlag;
	U16 pressCnt;
	DriverHandler_t KeyShortCheck_Handler;
	DriverHandler_t KeyLongCheck_Handler;
}Driver_KeyCheck_t;

enum{
	ID_KEY_Left=0,
	ID_KEY_Mid,
	ID_KEY_Right,
	ID_KEY_MAX
};

#endif
